﻿using System;
using System.Net;
using System.Runtime.Serialization;

namespace BusinessObjects
{
#if Silverlight
    [Serializable]
#else
    [DataContract]
#endif
    public class GameLevelInfo : BaseBusinessObject
    {
        private int levelIndex;       
        private PlacesEnumeration place;

        [DataMember]
        public int LevelIndex
        {
            get { return this.levelIndex; }
            set
            {
                if ( this.levelIndex != value )
                {
                    this.levelIndex = value;
                    base.NotifyPropertyChanged( "LevelIndex" );
                }
            }
        }

        [DataMember]
        public PlacesEnumeration Place
        {
            get
            {
                return this.place;
            }
            set
            {
                if ( this.place != value )
                {
                    this.place = value;
                    this.NotifyPropertyChanged( "Place" );
                }
            }
        }

    }
}
